package com.fortune.dto.in.pMAccountMgt;

import com.fortune.constants.enums.AccountInfoEnum;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

public class PMUserUpAndDownDto {
    @NotBlank(message="厂商id不能为空")
    @ApiModelProperty(required=true, example="厂商id")
    private String id;
    @NotNull(message="类型不能为空")
    @ApiModelProperty(required=true, example="上下架类型(YES上架,NO下架)")
    private AccountInfoEnum type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public AccountInfoEnum getType() {
        return type;
    }

    public void setType(AccountInfoEnum type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "UserUpAndDownDto{" +
                "id='" + id + '\'' +
                ", type=" + type +
                '}';
    }
}
